// 数据配置
const datas = {
	preview_color: {
		title: '背景颜色',
		type: 'color',
		value: "#F1F1F1",
	},
	style_set: {
		title: '限时购样式',
		type: 'radio',
		value: '1',
		options: [
			{label: '样式一', value: '1'},
			{label: '样式二', value: '2'},
		]
	},
	sort_style: {
		title: "商品排列样式",
		type: "iconbox",
		value: {
			choose_icon: '2',
		},
		choose: 'single',
		isIcon: true,
		options: [
			{icon: 'icon-ht_goods_onepic', value: '1'},
			{icon: 'icon-ht_goods_twopic', value: '2'},
			{icon: 'icon-ht_goods_vertical', value: '3'},
			{icon: 'icon-ht_goods_three', value: '4'},
			{icon: 'icon-ht_goods_threescroll', value: '5'},
			{icon: 'icon-ht_goods_threepic', value: '6'}
		],
		showBy: 'style_set',
		showKey: '1'
	},
	padding_top: { title: '上边距', type: 'number', value: 0, col: 4, showBy: 'style_set', showKey: '1'},
	padding_bottom: { title: '下边距', type: 'number', value: 0, col: 4, showBy: 'style_set', showKey: '1'},
	padding_left: { title: '左边距', type: 'number', value: 10, col: 4, showBy: 'style_set', showKey: '1'},
	padding_right: { title: '右边距', type: 'number', value: 10, col: 4, showBy: 'style_set', showKey: '1'},
	item_radius: {
		title: '商品圆角',
		type: 'bar',
		value: 5,
		min: 0,
		max: 50,
		showBy: 'style_set',
		showKey: '1'
	},
	show_shadow: {
		title: '投影',
		type: 'switch',
		tips: '只在大图和横排排列样式下实现',
		value: false,
		showBy: 'style_set',
		showKey: '1'
	},
	show_border: {
		title: '显示边框',
		type: 'switch',
		tips: '只在大图和横排排列样式下实现',
		value: false,
		showBy: 'style_set',
		showKey: '1'
	},
	border_color: {
		title: '边框颜色',
		type: 'color',
		value: '#BFB7B7',
		showBy: 'style_set',
		showKey: '1'
	},
	good_tag: {
		title: '商品属性',
		type: "iconbox",
		tips: '商品属性统一在左上角显示',
		value: {
			choose_icon: '0',
			image: '',
		},
		choose: 'single',
		isIcon: false,
		options: [
			{label: '无', value: '0'},
			{label: '推荐', value: '1'},
			{label: '热销', value: '2'},
			{label: '新上', value: '3'},
			{label: '包邮', value: '4'},
			{label: '限时', value: '5'},
			{label: '自定义', value: '7'}
		],
		showBy: 'style_set',
		showKey: '1'
	},
	time_color: {
		title: '倒计时文字颜色',
		type: 'color',
		value: '#ff2c29',
		showBy: 'style_set',
		showKey: '1'
	},
	button_type: {
		title: '购买按钮样式',
		tips: '选择一排三个商品的排列方式时无法选择样式一或者样式二',
		type: 'radio',
		value: '4',
		options: [
			{label: '无', value: '0'},
			{label: '样式一', value: '1'},
			{label: '样式二', value: '2'},
			{label: '样式三', value: '3'},
			{label: '样式四', value: '4'},
			{label: '样式五', value: '5'},
			{label: '样式六', value: '6'},
		],
		showBy: 'style_set',
		showKey: '1'
	},

	tabs_color: {
		title: '选项卡默认颜色',
		type: 'color',
		value: '#fff',
		showBy: 'style_set',
		showKey: '2'
	},
	tabs_active_color: {
		title: '选项卡选中颜色',
		type: 'color',
		value: '#fff',
		showBy: 'style_set',
		showKey: '2'
	},
	progress_color: {
		title: '进度条颜色',
		type: 'color',
		value: '#ff2c29',
		showBy: 'style_set',
		showKey: '2'
	},
	current_price_color: {
		title: '现价颜色',
		type: 'color',
		value: '#ff2c29',
		showBy: 'style_set',
		showKey: '2'
	},
	diy_name: {
		title: '限时购文字',
		type: 'text',
		value: '限时购',
		showBy: 'style_set',
		showKey: '2'
	},
	button_title: {
		title: '按钮文字',
		tips: '按钮文字只在选择有文字的样式时生效',
		type: 'text',
		value: '立即抢购'
	},
	button_bg_color: {
		title: '按钮背景颜色',
		type: 'color',
		value: '#ff2c29',
	},
	button_color: {
		title: '按钮颜色',
		type: 'color',
		value: '#ffffff',
	},
	content_list: {
		title: "内容显示",
		type: "checkbox",
		value: ['1','2','3'],
		options: [
			{label: "标题", value: "1"},
			{label: "原价", value: "2"},
			{label: "现价", value: "3"},
		],
		showBy: 'style_set',
		showKey: '1'
	},
	disable_good: {
		title: '失效产品',
		type: 'radio',
		value: '0',
		options: [
			{label: '不显示', value: '0'},
			{label: '样式一', value: '1'},
			{label: '样式二', value: '2'},
		],
		showBy: 'style_set',
		showKey: '1'
	},
	// get_number: {
	// 	title: "商品显示数量",
	// 	type: 'number',
	// 	value: 1,
	// 	min: 1,
	// 	max: 100
	// },
	list: {
		title: '商品数据',
		value: [],
		chooseList: {
			rush: [],
		},
		chooseType: [
			{label: '选择限时抢购', value: 'rush'},
		],
		hasStore: 1,//支持门店装修
		type: 'goodList',
		choose: 'rush',
		// showBy: 'style_set',
		// showKey: '1'
	},
	tablist: {
		title: "限时购选择",
		type: "tabCard",
		showBy: 'style_set',
		showKey: '2',
		value: [{
			"id": 1,
			"type_id": "1",
			"uikey": "U_goodsrush",
			"component": "正在开团",
			"name": "",
			"active": true,
		},
		{
			"id": 2,
			"type_id": "2",
			"uikey": "U_goodsrush",
			"component": "即将上架",
			"name": "",
			"active": false,
		}],
	},
	goods_type: {
		title: '选择类型',
		type: 'radio',
		value: 'rush',
		options: []
	}
};

// 样式配置
const styles = {};

import template1 from './template1';

export const config = {
	datas,
	styles,
	layout: [
		template1
	]
};
